import Layout from '@/layout'

const contentRouter = {
	path: '/course',
	component: Layout,
	redirect: '/course/sort',
	name: 'course',
	meta: {
		title: '视频管理',
		icon: 'clipboard'
	},
	children: [{
			path: 'sort',
			name: 'sort',
			component: () => import('@/views/content/articleclass/list'),
			meta: {
				title: '题库分类',
				icon: 'clipboard'
			}
		},
		{
			path: 'courselist',
			name: 'courselist',
			component: () => import('@/views/content/article/list'),
			meta: {
				title: '题库管理',
				icon: 'clipboard'
			}
		},
		{
			path: 'daytraining',
			name: 'daytraining',
			component: () => import('@/views/content/bargain/bargainList'),
			meta: {
				title: '日日练',
				icon: 'clipboard'
			}
		},
		{
			path: 'daycreat/:id?',
			name: 'daycreat',
			component: () => import('@/views/content/bargain/bargainList/bargainAdd'),
			meta: {
				title: '添加日日练',
				icon: 'clipboard'
			}
		},
		{
			path: 'create/:id?',
			name: 'articleCreat',
			component: () => import('@/views/content/article/edit'),
			meta: {
				title: '编辑题目',
				noCache: true
			}
		},
		{
			path: 'createuser/:id?',
			name: 'userCreat',
			component: () => import('@/views/content/bargain/bargainList/userChoose'),
			meta: {
			  title: '添加关联',
			  noCache: true
			}
		  },
		{
			path: 'setLive/:id?',
			name: 'liveCreat',
			component: () => import('@/views/content/live/list/setLive'),
			meta: {
				title: '编辑直播',
				noCache: true
			}
		}
	]
}

export default contentRouter
